package org.jeecg.modules.demo.annualkeywork.service;

import org.jeecg.modules.demo.annualkeywork.entity.*;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.bind.annotation.RequestParam;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 年度重点工作
 * @Author: jeecg-boot
 * @Date:   2025-08-19
 * @Version: V1.0
 */
public interface IAnnualKeyWorkService extends IService<AnnualKeyWork> {

	/**
	 * 添加一对多
	 *
	 * @param annualKeyWork
	 * @param keyWorkDepartmentsList
	 */
	public void saveMain(AnnualKeyWork annualKeyWork,List<KeyWorkDepartments> keyWorkDepartmentsList) ;
	
	/**
	 * 修改一对多
	 *
   * @param annualKeyWork
   * @param keyWorkDepartmentsList
	 */
	public void updateMain(AnnualKeyWork annualKeyWork,List<KeyWorkDepartments> keyWorkDepartmentsList);
	
	/**
	 * 删除一对多
	 *
	 * @param id
	 */
	public void delMain (String id);
	
	/**
	 * 批量删除一对多
	 *
	 * @param idList
	 */
	public void delBatchMain (Collection<? extends Serializable> idList);
	//    查询年度重点工作列表
	List<AnnualKeyWorkList> queryKeyWorkList();
	//    查询汇报年度重点工作列表
	List<ReportAnnualKeyWork> SelectKeyWorkList(String orgId);
	//    保存汇报年度重点工作，实现汇报功能
	int saveReportAnnualKeyWork(@RequestParam ReportAnnualKeyWork reportAnnualKeyWork);
	//    查询年度重点工作的所有数据
	List<AnnualKeyWork> getAllList();
	//    查询责任部门的上级部门
	String SelectApprovalKeyWorkListByRespondepartment();
	//    查询审批年度重点工作列表
	List<ApprovalAnnualKeyWork> SelectApprovalKeyWorkList();
	//    保存审批年度重点工作，实现审批功能
	int saveApprovalKeyWork(@RequestParam ApprovalAnnualKeyWork approvalKeyWork);
}
